package com.dkt.android.core


/**
 * @author: jcm
 * @email: jiangcm@aplus-it.cn
 * @createTime: 20-6-3
 */
object RouterHub {

    /**
     * 组名
     */
    private const val APP = "/app" //宿主 App 组件
    private const val OTHER = "/other"//其他

    /**
     * 服务组件, 用于给每个组件暴露特有的服务
     */
    private const val SERVICE = "/service"

    /**
     * group
     * 这里是权限的判断 ：使用八位的二进制数，当你需要某个权限 在extras 中添加；
     *  并添加权限的判断条件
     */

    private const val GROUP_NEED_LOGIN = 0b00000001

    /**
     * interceptor
     */
    const val INTERCEPTOR_USER_LOGIN = 1
    const val INTERCEPTOR_USER_LOGIN_NAME = "用户登陆鉴权拦截器"



    /**
     * 宿主 App 分组
     */
    const val APP_LOGIN_ACTIVITY = "$APP/LoginActivity"
    const val APP_MAIN_ACTIVITY  = "$APP/MainActivity"
    const val APP_REGISTER_ACTIVITY  = "$APP/RegisterActivity"
    const val APP_MAP_ACTIVITY  = "$APP/BaiduMapActivity"


    const val APP_INDEX = "$APP/IndexFragment"
    const val APP_SHOPPING = "$APP/ShoppingFragment"
    const val APP_ORDER = "$APP/OrderFragment"

    /**
     * other
     */
    const val OTHER_EMPTY_VIEW = "$OTHER/EmptyActivity"
    const val OTHER_ERROR_VIEW = "$OTHER/EmptyActivity"

}